A Simple Re ective Interpreter Stanley Je erson

نویسنده

  • Daniel P. Friedman
چکیده

Procedurally re ective programming languages enable user programs to semantically extend the language itself, by permitting them to run at the level of the language implementation with access to their context. The re ective tower, rst introduced by Brian Smith [9, 10], is the principal architecture for such languages. It is informally described as an in nitely ascending tower of meta-circular interpreters, connected by a mechanism that allows programs at one level to run at the next higher level. Various accounts of the re ective tower have been published, including a meta-circular de nition, operational de nitions, and denotational de nitions. We present an operational account of the main aspects of the re ective tower, which we claim is simpler than previous accounts. Our approach is to implement a nite tower where each level literally runs the level directly below it. A complete Scheme implementation is included.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Roles of a Partial Evaluator for the Re ective Language Black

A re ective language allows us to access its interpreter to dynamically modify or extend the language semantics from within the same language. In the previous paper, we implemented a re ective language called Black, and showed that a directly executable interpreter can be implemented by duplicating and partially evaluating the metalevel interpreters without losing changeability. In this paper, ...

متن کامل

Roles of a Partial Evaluator for the Re ective Language

A re ective language allows us to access its interpreter to dynamically modify or extend the language semantics from within the same language. In the previous paper, we implemented a re ective language called Black, and showed that a directly executable interpreter can be implemented by duplicating and partially evaluating the metalevel interpreters without losing changeability. In this paper, ...

متن کامل

Partial Evaluator as a Compiler for Re ective Languages

This paper presents an online partial evaluator with a mechanism to handle I/O-type side-e ects using preactions, and reports our experiment of using the partial evaluator as a compiler for the re ective language Black we are designing. Black is a Scheme-based re ective language, which allows user programs to access and modify its metalevel interpreter (or the language semantics) from within th...

متن کامل

Duplication and Partial Evaluation | for a Better Understanding of Re Blockinective Languages |

This paper presents a general implementation framework for re ective languages. It allows us to systematically build re ective languages which have the following favorable properties: (1) user programs are allowed to access and change (parts of) metalevel interpreters, (2) re ective facilities are available at every level, (hence there exists conceptually an in nite tower of interpreters), and ...

متن کامل

Towards a Theory of Re ective Programming Languages (

This paper attempts to develop a better theoretical understanding of re ective systems. We begin by a developing a re ective extension of the v -calculus and de ne a simple operational semantics for it based on the in nite tower model described in [10]. We then develop an equational logic from this semantics. The resulting logic is shown to be weak because of re ective properties. We establish ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1992